<%@ page import="top.yinhe.study.javawebjdbc.dao.TbMovieDAO" %><%--
  Created by IntelliJ IDEA.
  User: 巫和勇
  Date: 2024/5/30
  Time: 10:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    request.setCharacterEncoding("UTF-8");
    Integer id = Integer.valueOf(request.getParameter("id"));
    TbMovieDAO.delete(id);
%>

<script>
    alert("删除成功");
    location.href = "list.jsp";
</script>
</body>
</html>
